<gm:page title="My App" authenticate="false">
  <script>
    function encode(str){
    // thnks RobertGraham
      result="";
      str=String(str);
      for (i=0; i != str.length; i++) {
        result = result + "%";
        result = result + "0123456789ABCDEF".charAt((str.charCodeAt(i)/16)&0x0F);
        result = result + "0123456789ABCDEF".charAt((str.charCodeAt(i)/1)&0x0F);
      }  
      return result;
    }
    self.location.href="reporte.html#t="+escape(encode("prueba"))+";l="+escape(encode(location));
  </script>
</gm:page>